'''
爬取生物科技新闻
'''
import time
from Apir13.pcUtils  import *
s = Scrawler()
url='https://www.jiemian.com/lists/30.html'
#load-list > li:nth-child(4) > div.card-list__img.news-img > a > img
   # 5爬取小图
picUrl = s.getImgUrl(url, selector="div.card-list__img.news-img > a > img")
for index,url in enumerate(picUrl):
   s.getImgs(url, imgName="bionews-" + str(index) + ".jpg")
   time.sleep(0.2)












